package net.zjitc.company;

/**
 * @Author admin
 * @Date 2019/3/13 9:10
 */
public class Company {
    private String name;
    private int num;

    Company(){

    }
    Company(String name,int num){
        this.name=name;
        this.num=num;
    }

    void output(){
        System.out.println("公司名："+name+",人数："+num);
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getNum() {
        return num;
    }
}
